<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">  
    <title>申请售后</title>
    <link rel="stylesheet" href="/Public/Home/css/memberOrder.css">
    <!--不识别数字为手机-->
<meta name="format-detection" content="telephone=no, email=no"/>
<!--通用js-->
<?php if(isset($signPackage) && !empty($signPackage)){ ?>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js?v=201704270010"></script>
<?php } ?>
<script type="text/javascript" src="/Public/Home/js/require.js"></script>
<script type="text/javascript" src="/Public/Home/js/baseLoading.js?v=201705240001"></script>
<script src="/Public/Home/js/jquery.min.js" ></script>
<script src="/Public/Home/js/pincode-input.js" ></script>
<script src="/Public/Home/js/parabola.js" ></script>
<script src="/Public/Home/js/lazyload/jquery.lazyload.min.js"></script>
<script type="text/javascript">
    _global.isLogin = !!"<?php echo $wx_member_id; ?>";
	var isWxShareDiy = typeof yc_share_diy === "undefined" ? false : yc_share_diy;
	var yc_wx_shareImgPath = "";
	<?php if(isset($weixin_logo) && !empty($weixin_logo)){ ?>
		yc_wx_shareImgPath = "/Uploads/<?php echo ($weixin_logo["image"]); ?>";
	<?php } ?>
    var yc_pass_arr = {'local_id':"<?php echo I('local_id',1);?>",'top_local_id':"<?php echo I('top_local_id',1);?>"};
	if(parseInt(yc_pass_arr["local_id"]) == 21){
		_global.isStopSell = true;
	}
    <?php if(isset($signPackage) && !empty($signPackage)){ ?>
        _global.isWeiXinLoad = true;
        var isEnableLocation = typeof yc_wx_location === "undefined" ? false : yc_wx_location;
        var yc_wx_options = {
            "enableLocation" : isEnableLocation,
            "refuseCallback" : function(){},
            "mapCallback" : function(){},
            "config" : {
                debug: false,
                appId: '<?php echo $signPackage["appId"];?>',
                timestamp: '<?php echo $signPackage["timestamp"];?>',
                nonceStr: '<?php echo $signPackage["nonceStr"];?>',
                signature: '<?php echo $signPackage["signature"];?>',
                jsApiList: [
                    'checkJsApi'
                ]
            }
        };
        var isInHeader = typeof yc_wx_useInHeader === "undefined" ? true : yc_wx_useInHeader;
        if(isInHeader){
            wxAutoConfig(yc_wx_options);
        }
    <?php } ?>
</script>
</head>
<body>
	<div class="warp">
		<!--订单类别-->
		<div class="member-order-top">
			<!-- 查看更多物流信息 -->
            <?php if($orders['status'] == 'active' ): if($orders['refund_ago_money_status'] == '0' && $orders['refund_ago_goods_status'] == '0' ) { ?>
                <div class="member-list-template">
                    <a href="<?php echo url('MemberRefundGoods/index',['order_id' => $orders['order_id'],'sell' => 'refund_ago_money_status']);?>">
                        <i><img src="/Public/Home/images/refund-icon01.png"></i>
                        <h3>仅退款</h3>
                    </a>
                </div>
                <div class="member-list-template">
                    <a href="<?php echo url('MemberRefundReturn/index',['order_id' => $orders['order_id'],'sell' => 'refund_ago_goods_status']);?>">
                        <i><img src="/Public/Home/images/refund-icon02.png"></i>
                        <h3>退款退货</h3>
                    </a>
                </div>
                <?php } ?>
                <?php
 if($orders['refund_ago_money_status'] > '0' && $orders['refund_ago_goods_status'] == '0' ) { ?>
                <div class="member-list-template">
                    <a href="<?php echo url('MemberRefundGoods/index',['order_id' => $orders['order_id'],'sell' => 'refund_ago_money_status']);?>">
                        <i><img src="/Public/Home/images/refund-icon01.png"></i>
                        <h3>仅退款</h3>
                    </a>
                </div>
                <?php } ?>

                <?php
 if($orders['refund_ago_money_status'] == '0' && $orders['refund_ago_goods_status'] > '0' ) { ?>
                <div class="member-list-template">
                    <a href="<?php echo url('MemberRefundReturn/index',['order_id' => $orders['order_id'],'sell' => 'refund_ago_goods_status']);?>">
                        <i><img src="/Public/Home/images/refund-icon02.png"></i>
                        <h3>退款退货</h3>
                    </a>
                </div>
                <?php } endif; ?>
            <?php
 if ($refund == 'true'){ ?>
            <div class="member-list-template">
                <a href="<?php echo url('Member/after_sale_refund',['order_id' => $orders['order_id']]);?>">
                    <i><img src="/Public/Home/images/refund-icon03.png"></i>
                    <h3>售后记录</h3>
                </a>
            </div>
            <?php
 } ?>
			<div class="member-list-template">
				<a href="<?php echo url('MemberComplain/index',['order_id' => $orders['order_id']]);?>">
					<i><img src="/Public/Home/images/refund-icon04.png"></i>
					<h3>我要投诉</h3>
				</a>
			</div>
		</div>
    </div>
	<script>
		require(['memberOrderData'])
	</script>
</body>
</html>